package com.umakr.ax.common.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.umakr.ax.common.model.RadioStation;
import com.umakr.ax.common.vo.RadioBaseInfoVO;
import com.umakr.ax.common.vo.RadioStationVO;
import com.umakr.ax.core.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Umakr-Code-Generator
 * @since 2017-12-30
 */
public interface RadioStationMapper extends BaseMapper<RadioStation> {

    Page<RadioBaseInfoVO> getRadioPageByTypeAndUserIdAndAreaCode(@Param("type")Integer type , @Param("userId")Long userId , @Param("areaCode")String araeCode );
    RadioBaseInfoVO getRadioInfoByUserIdAndRsId(@Param("userId")Long userId , @Param("rsId")Long rsId , @Param("areaCode")String areaCode);

    RadioBaseInfoVO getRadioInfoByRsCode(@Param("rsCode")String rsCode);

    Page<RadioStationVO> listRadioStation(@Param("rsName")String rsName);

    void updateStatusById(@Param("id")Long id,@Param("status")Integer status);

    void saveRadioStation(RadioStation radioStation);

    void updateRadioStation(RadioStation radioStation);

    Map<String,Object> getRsAdminByRsId(@Param("id") Long id);

    String getRsNameById(long rsId);
}